package me.landery.modules.sinco.repository;

import me.landery.modules.sinco.domain.News;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.Set;

public interface NewsRepository extends JpaRepository<News, Long>, JpaSpecificationExecutor<News> {
    void deleteAllByIdIn(Set<Long> ids);
    /**
     * 根据 PID 查询
     * @param id pid
     * @return /
     */
//    List<News> findById(Long id);
}